<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.Calendar" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
    session.setAttribute("id","doctor1");
    session.setAttribute("password","password1");
    session.setAttribute("schid","1");
    Calendar cal=Calendar.getInstance();
    int y=cal.get(Calendar.YEAR);
    int m=cal.get(Calendar.MONTH)+1;
    int d=cal.get(Calendar.DATE);
    int h=cal.get(Calendar.HOUR_OF_DAY);
    int mi=cal.get(Calendar.MINUTE);
    int s=cal.get(Calendar.SECOND);

    %>
    <title>医生端</title>
    <meta charset="UTF-8">
    <style>

        html ,body{
            width: 100%;
            height: 100%;
        }
        *{
            margin:0;
            padding:0;
        }
        #menu{
            overflow: hidden;
            width: 16%;
            height: 100%;
            float: left;
            background-color: #e6ffe9;
            color:black;
            transition: 0.3s;
            font-size: 25px;
            background-image: linear-gradient(to right ,pink, #ffffff, #e6ffe9);
        }
        #content{

            width: 84%;
            height: 100%;
            float: left;
            transition: 0.3s;
        }
        .parentNav{
            font-size: 25px;
        }
        .item li{
            font-size: 20px;
        }
        a{
            width: 100%;
            display: block;
            text-decoration: none;
            font-size: 20px;
            color: black;

        }
        a:hover,.parentNav:hover{
            background-color:#ffffff;
        }
        .two{
            display: none;
        }
        .menu_button{
            float:left;
            display: none;
            font-size: 20px;
            cursor: pointer;
            background-color: #7FFFAA;
            color: black;
            padding: 8px 15px 15px 15px;
            border: none;
        }
        li{
            margin: 5px;
        }
        .closebtn{
            height: 6%;
            float:right;
            font-size: 20px;
            cursor: pointer;
            background-color: #7FFFAA;
            color: black;
            padding:8px 15px 15px 15px;
            border: none;
        }
        .list{
            position: relative;
            top: 6%;
        }
    </style>
</head>
<body>
<div id="menu" style="user-select:none;">
    <button class="closebtn"   onclick="closeNav()"><strong>&#9776;</strong> </button>
    <ul class="list">
        <li class="item" value="1" onclick="show(0)">
            <div class="parentNav" >
                <strong> &nbsp;叫号管理</strong>
            </div>
            <ul class="two">
                <li><a href="Callpatient.jsp">&nbsp; &nbsp;叫号管理</a></li>
                <li><a href="Add_patient.jsp">&nbsp; &nbsp;添加患者</a></li>
            </ul>
        </li>
        <li class="item" value="1" onclick="show(1)">
            <div class="parentNav" >
                <strong> &nbsp;过号处理</strong>
            </div>
            <ul class="two">
                <li><a href="Overnum.jsp">&nbsp; &nbsp; 过号处理</a></li>
            </ul>
        </li>
        <li class="item" value="1" onclick="show(2)">
            <div class="parentNav" >
                <strong>&nbsp;个人信息管理</strong>
            </div>
            <ul class="two">
                <li><a href="doc_inform.jsp">&nbsp; &nbsp;账号密码管理</a></li>
            </ul>
        </li>
    </ul>
</div>

<div id="content">
</div>
</body>
<script>
    function openNav() {
        document.getElementById("menu").style.width="18%";
        document.getElementById("content").style.width="82%";
        document.getElementsByClassName("menu_button")[0].style.display="none";
    }
    function  closeNav() {
        document.getElementById("menu").style.width="0";
        document.getElementById("content").style.width="100%";
        document.getElementsByClassName("menu_button")[0].style.display="block";
    }
    function show(index) {
        var a = parseInt(document.getElementsByClassName("item")[index].value);
        document.getElementsByClassName("item")[index].value = (a + 1) % 2;
        if (a == 1) {
            document.getElementsByClassName("two")[index].style.display = "block";
        } else {
            document.getElementsByClassName("two")[index].style.display = "none";
        }
    }

</script>
</html>